package reflection;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.lang.reflect.Modifier;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class Test {
	public void test() {
		List<Integer> list = new ArrayList<Integer>();
	}
	
	public static void main(String[] args) {
		Date d = new Date();
		
		Class c = d.getClass();
		
		System.out.println("Class name: " + c.getName());
		System.out.println("Super Class: " + c.getSuperclass());
		System.out.println("Constructor: " + c.getConstructors());
		System.out.println(c.getModifiers());
		
		try {
			FileInputStream fis = new FileInputStream("a.txt");
			
			Modifier m;
			
			System.out.println(Modifier.isAbstract(m));
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		}
	}

}
